import { useList } from './hooks封装'

function App() {
  const list = useList()
  return (
    <div>
      <ul>
        {list.map((item) => (
          <li key={item.id}>
            <p>
              <img src={item.img} alt={item.title} />
            </p>
            <p>{item.title}</p>
          </li>
        ))}
      </ul>
    </div>
  )
}
export default App
